#pragma once

#include <iostream>


#define DIE(code)   \
    do              \
    {               \
        exit(code); \
    } while (0)

    
#define CONV(sock) (struct sockaddr *)sock


enum
{
    USAGE_ERR = 1,
    SOCKET_ERR,
    BIND_ERR,
    SENDTO_ERR,
    LISTEN_ERR,
    CONNECT_ERR,
    SEND_ERR
};

